<%@ include file="/WEB-INF/templates/includes/taglibs.jsp"%>
<div class="personal-info span3">
<h4 class="alert alert-info">Personal Information</h4>

    <h2>${cv.name}</h2>
    <div class="thumbnail">
        <img src="${pageContext.servletContext.contextPath}/cvtemplate/pictures/${cv.id}"/>
    </div>
    <div class="property-display-holder">
        <div class="property-name">
            Address
        </div>
        <div class="property-value">
            ${cv.address}
        </div>
        <div class="cleaner"></div>
    </div>
    <div class="property-display-holder">
        <div class="property-name">
            Date of birth
        </div>
        <div class="property-value">
            <fmt:formatDate value="${cv.dateOfBirth}" pattern="MMMM dd, yyyy"/>
        </div>
        <div class="cleaner"></div>
    </div>
    <div class="property-display-holder">
        <div class="property-name">
            Department
        </div>
        <div class="property-value">
            ${cv.currentDepartment}
        </div>
        <div class="cleaner"></div>
    </div>
    <div class="property-display-holder">
        <div class="property-name">
            Role
        </div>
        <div class="property-value">
            ${cv.currentRole}
        </div>
        <div class="cleaner"></div>
    </div>
    <div class="property-display-holder">
        <div class="property-name">
            Start Date
        </div>
        <div class="property-value">
            <fmt:formatDate value="${cv.startDate}" pattern="MMMM dd, yyyy"/>
        </div>
        <div class="cleaner"></div>
    </div>
    <div class="property-display-holder">
        <div class="property-name">
            Languages
        </div>
        <div class="property-value">
            <c:forEach items="${cv.languages}" var="lang">
                <span class="language">
                    <c:out value="${lang.name}" />
                    (<c:out value="${lang.level}" />)
                </span><br>
            </c:forEach>
        </div>
        <div class="cleaner"></div>
    </div>
    <div class="control-buttons">
        <a href="<cmsold:out nodeDataName="editLink" uuidToLink="relative" />.html?cvid=${cv.id}" class="btn btn-large btn-info">Edit CV</a>
        <button class="btn btn-large btn-info" onClick="window.print()">Print this CV</button>
    </div>
</div>
